function file = BLOB2file(BLOB, f)
    if ~(isa(f, 'fileWrapper') || isa(f, 'fileWrapper_dev'))
        f = fileWrapper(f, 'w');
    end
    if isempty(f.err)
        f.checkedfprint(BLOB)
    end
end
